package com.liuxingwu.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @author 扫地生_LiuXingWu
 */
// 后置日志
public class AfterLog implements AfterReturningAdvice {

    // returnValue:返回值
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("log: 执行一个了" + method.getName() + " 方法，返回结果为：" + returnValue);
    }
}
